﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000E59 RID: 3673
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueArcadeStartCsReq : IMessage<RogueArcadeStartCsReq>, IMessage, IEquatable<RogueArcadeStartCsReq>, IDeepCloneable<RogueArcadeStartCsReq>, IBufferMessage
	{
		// Token: 0x17002EB1 RID: 11953
		// (get) Token: 0x0600A4F5 RID: 42229 RVA: 0x001BC81D File Offset: 0x001BAA1D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueArcadeStartCsReq> Parser
		{
			get
			{
				return RogueArcadeStartCsReq._parser;
			}
		}

		// Token: 0x17002EB2 RID: 11954
		// (get) Token: 0x0600A4F6 RID: 42230 RVA: 0x001BC824 File Offset: 0x001BAA24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueArcadeStartCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002EB3 RID: 11955
		// (get) Token: 0x0600A4F7 RID: 42231 RVA: 0x001BC836 File Offset: 0x001BAA36
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueArcadeStartCsReq.Descriptor;
			}
		}

		// Token: 0x0600A4F8 RID: 42232 RVA: 0x001BC83D File Offset: 0x001BAA3D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueArcadeStartCsReq()
		{
		}

		// Token: 0x0600A4F9 RID: 42233 RVA: 0x001BC850 File Offset: 0x001BAA50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueArcadeStartCsReq(RogueArcadeStartCsReq other) : this()
		{
			this.roomId_ = other.roomId_;
			this.baseAvatarIdList_ = other.baseAvatarIdList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600A4FA RID: 42234 RVA: 0x001BC886 File Offset: 0x001BAA86
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueArcadeStartCsReq Clone()
		{
			return new RogueArcadeStartCsReq(this);
		}

		// Token: 0x17002EB4 RID: 11956
		// (get) Token: 0x0600A4FB RID: 42235 RVA: 0x001BC88E File Offset: 0x001BAA8E
		// (set) Token: 0x0600A4FC RID: 42236 RVA: 0x001BC896 File Offset: 0x001BAA96
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint RoomId
		{
			get
			{
				return this.roomId_;
			}
			set
			{
				this.roomId_ = value;
			}
		}

		// Token: 0x17002EB5 RID: 11957
		// (get) Token: 0x0600A4FD RID: 42237 RVA: 0x001BC89F File Offset: 0x001BAA9F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> BaseAvatarIdList
		{
			get
			{
				return this.baseAvatarIdList_;
			}
		}

		// Token: 0x0600A4FE RID: 42238 RVA: 0x001BC8A7 File Offset: 0x001BAAA7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueArcadeStartCsReq);
		}

		// Token: 0x0600A4FF RID: 42239 RVA: 0x001BC8B8 File Offset: 0x001BAAB8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueArcadeStartCsReq other)
		{
			return other != null && (other == this || (this.RoomId == other.RoomId && this.baseAvatarIdList_.Equals(other.baseAvatarIdList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600A500 RID: 42240 RVA: 0x001BC908 File Offset: 0x001BAB08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.RoomId != 0U)
			{
				num ^= this.RoomId.GetHashCode();
			}
			num ^= this.baseAvatarIdList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600A501 RID: 42241 RVA: 0x001BC955 File Offset: 0x001BAB55
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600A502 RID: 42242 RVA: 0x001BC95D File Offset: 0x001BAB5D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600A503 RID: 42243 RVA: 0x001BC968 File Offset: 0x001BAB68
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.baseAvatarIdList_.WriteTo(ref output, RogueArcadeStartCsReq._repeated_baseAvatarIdList_codec);
			if (this.RoomId != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.RoomId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600A504 RID: 42244 RVA: 0x001BC9B8 File Offset: 0x001BABB8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.RoomId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.RoomId);
			}
			num += this.baseAvatarIdList_.CalculateSize(RogueArcadeStartCsReq._repeated_baseAvatarIdList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600A505 RID: 42245 RVA: 0x001BCA0C File Offset: 0x001BAC0C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueArcadeStartCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.RoomId != 0U)
			{
				this.RoomId = other.RoomId;
			}
			this.baseAvatarIdList_.Add(other.baseAvatarIdList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600A506 RID: 42246 RVA: 0x001BCA59 File Offset: 0x001BAC59
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600A507 RID: 42247 RVA: 0x001BCA64 File Offset: 0x001BAC64
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U && num != 18U)
				{
					if (num != 112U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.RoomId = input.ReadUInt32();
					}
				}
				else
				{
					this.baseAvatarIdList_.AddEntriesFrom(ref input, RogueArcadeStartCsReq._repeated_baseAvatarIdList_codec);
				}
			}
		}

		// Token: 0x04004318 RID: 17176
		private static readonly MessageParser<RogueArcadeStartCsReq> _parser = new MessageParser<RogueArcadeStartCsReq>(() => new RogueArcadeStartCsReq());

		// Token: 0x04004319 RID: 17177
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400431A RID: 17178
		public const int RoomIdFieldNumber = 14;

		// Token: 0x0400431B RID: 17179
		private uint roomId_;

		// Token: 0x0400431C RID: 17180
		public const int BaseAvatarIdListFieldNumber = 2;

		// Token: 0x0400431D RID: 17181
		private static readonly FieldCodec<uint> _repeated_baseAvatarIdList_codec = FieldCodec.ForUInt32(18U);

		// Token: 0x0400431E RID: 17182
		private readonly RepeatedField<uint> baseAvatarIdList_ = new RepeatedField<uint>();
	}
}
